<?php
$tdatatintuc=array();
	$tdatatintuc[".NumberOfChars"]=80; 
	$tdatatintuc[".ShortName"]="tintuc";
	$tdatatintuc[".OwnerID"]="";
	$tdatatintuc[".OriginalTable"]="tintuc";


	
//	field labels
$fieldLabelstintuc = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstintuc["English"]=array();
	$fieldToolTipstintuc["English"]=array();
	$fieldLabelstintuc["English"]["tieude"] = "Tieude";
	$fieldToolTipstintuc["English"]["tieude"] = "";
	$fieldLabelstintuc["English"]["motangangon"] = "Motangangon";
	$fieldToolTipstintuc["English"]["motangangon"] = "";
	$fieldLabelstintuc["English"]["motachitiet"] = "Motachitiet";
	$fieldToolTipstintuc["English"]["motachitiet"] = "";
	$fieldLabelstintuc["English"]["hinhanh"] = "Hinhanh";
	$fieldToolTipstintuc["English"]["hinhanh"] = "";
	if (count($fieldToolTipstintuc["English"])){
		$tdatatintuc[".isUseToolTips"]=true;
	}
}


	
	$tdatatintuc[".NCSearch"]=true;

	

$tdatatintuc[".shortTableName"] = "tintuc";
$tdatatintuc[".nSecOptions"] = 0;
$tdatatintuc[".recsPerRowList"] = 1;	
$tdatatintuc[".tableGroupBy"] = "0";
$tdatatintuc[".mainTableOwnerID"] = "";
$tdatatintuc[".moveNext"] = 1;




$tdatatintuc[".showAddInPopup"] = false;

$tdatatintuc[".showEditInPopup"] = false;

$tdatatintuc[".showViewInPopup"] = false;


$tdatatintuc[".fieldsForRegister"] = array();

$tdatatintuc[".listAjax"] = false;

	$tdatatintuc[".audit"] = false;

	$tdatatintuc[".locking"] = false;
	
$tdatatintuc[".listIcons"] = true;
$tdatatintuc[".edit"] = true;
$tdatatintuc[".inlineEdit"] = true;
$tdatatintuc[".view"] = true;

$tdatatintuc[".exportTo"] = true;

$tdatatintuc[".printFriendly"] = true;

$tdatatintuc[".delete"] = true;

$tdatatintuc[".showSimpleSearchOptions"] = false;

$tdatatintuc[".showSearchPanel"] = true;


$tdatatintuc[".isUseAjaxSuggest"] = true;

$tdatatintuc[".rowHighlite"] = true;


// button handlers file names

$tdatatintuc[".addPageEvents"] = false;

$tdatatintuc[".arrKeyFields"][] = "tieude";
$tdatatintuc[".arrKeyFields"][] = "motangangon";
$tdatatintuc[".arrKeyFields"][] = "hinhanh";

// use datepicker for search panel
$tdatatintuc[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatintuc[".isUseTimeForSearch"] = false;

$tdatatintuc[".isUseiBox"] = false;



$tdatatintuc[".isUseInlineAdd"] = true;

$tdatatintuc[".isUseInlineEdit"] = true;
$tdatatintuc[".isUseInlineJs"] = $tdatatintuc[".isUseInlineAdd"] || $tdatatintuc[".isUseInlineEdit"];

$tdatatintuc[".allSearchFields"] = array();

$tdatatintuc[".globSearchFields"][] = "tieude";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieude", $tdatatintuc[".allSearchFields"]))
{
	$tdatatintuc[".allSearchFields"][] = "tieude";	
}
$tdatatintuc[".globSearchFields"][] = "motangangon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("motangangon", $tdatatintuc[".allSearchFields"]))
{
	$tdatatintuc[".allSearchFields"][] = "motangangon";	
}
$tdatatintuc[".globSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatatintuc[".allSearchFields"]))
{
	$tdatatintuc[".allSearchFields"][] = "hinhanh";	
}


$tdatatintuc[".googleLikeFields"][] = "tieude";
$tdatatintuc[".googleLikeFields"][] = "motangangon";
$tdatatintuc[".googleLikeFields"][] = "hinhanh";



$tdatatintuc[".advSearchFields"][] = "tieude";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieude", $tdatatintuc[".allSearchFields"])) 
{
	$tdatatintuc[".allSearchFields"][] = "tieude";	
}
$tdatatintuc[".advSearchFields"][] = "motangangon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("motangangon", $tdatatintuc[".allSearchFields"])) 
{
	$tdatatintuc[".allSearchFields"][] = "motangangon";	
}
$tdatatintuc[".advSearchFields"][] = "motachitiet";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("motachitiet", $tdatatintuc[".allSearchFields"])) 
{
	$tdatatintuc[".allSearchFields"][] = "motachitiet";	
}
$tdatatintuc[".advSearchFields"][] = "hinhanh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinhanh", $tdatatintuc[".allSearchFields"])) 
{
	$tdatatintuc[".allSearchFields"][] = "hinhanh";	
}

$tdatatintuc[".isTableType"] = "list";


	

$tdatatintuc[".isDisplayLoading"] = true;

$tdatatintuc[".isResizeColumns"] = false;





$tdatatintuc[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatintuc[".strOrderBy"] = $gstrOrderBy;
	
$tdatatintuc[".orderindexes"] = array();

$tdatatintuc[".sqlHead"] = "SELECT tieude,  motangangon,  motachitiet,  hinhanh";
$tdatatintuc[".sqlFrom"] = "FROM tintuc";
$tdatatintuc[".sqlWhereExpr"] = "";
$tdatatintuc[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatintuc[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatintuc[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "tieude";
	$tableKeys[] = "motangangon";
	$tableKeys[] = "hinhanh";
	$tdatatintuc[".Keys"] = $tableKeys;

//	tieude
	$fdata = array();
	$fdata["strName"] = "tieude";
	$fdata["ownerTable"] = "tintuc";
		$fdata["Label"]="Tieude"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieude";
	
		$fdata["FullName"]= "tieude";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatintuc["tieude"]=$fdata;
//	motangangon
	$fdata = array();
	$fdata["strName"] = "motangangon";
	$fdata["ownerTable"] = "tintuc";
		$fdata["Label"]="Motangangon"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "motangangon";
	
		$fdata["FullName"]= "motangangon";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatintuc["motangangon"]=$fdata;
//	motachitiet
	$fdata = array();
	$fdata["strName"] = "motachitiet";
	$fdata["ownerTable"] = "tintuc";
		$fdata["Label"]="Motachitiet"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "motachitiet";
	
		$fdata["FullName"]= "motachitiet";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatintuc["motachitiet"]=$fdata;
//	hinhanh
	$fdata = array();
	$fdata["strName"] = "hinhanh";
	$fdata["ownerTable"] = "tintuc";
		$fdata["Label"]="Hinhanh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinhanh";
	
		$fdata["FullName"]= "hinhanh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatintuc["hinhanh"]=$fdata;

	
$tables_data["tintuc"]=&$tdatatintuc;
$field_labels["tintuc"] = &$fieldLabelstintuc;
$fieldToolTips["tintuc"] = &$fieldToolTipstintuc;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tintuc"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tintuc"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "tieude,  motangangon,  motachitiet,  hinhanh";
$proto0["m_strFrom"] = "FROM tintuc";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "tieude",
	"m_strTable" => "tintuc"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "motangangon",
	"m_strTable" => "tintuc"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "motachitiet",
	"m_strTable" => "tintuc"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "hinhanh",
	"m_strTable" => "tintuc"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto13=array();
$proto13["m_link"] = "SQLL_MAIN";
			$proto14=array();
$proto14["m_strName"] = "tintuc";
$proto14["m_columns"] = array();
$proto14["m_columns"][] = "id";
$proto14["m_columns"][] = "tieude";
$proto14["m_columns"][] = "motangangon";
$proto14["m_columns"][] = "motachitiet";
$proto14["m_columns"][] = "hinhanh";
$obj = new SQLTable($proto14);

$proto13["m_table"] = $obj;
$proto13["m_alias"] = "";
$proto15=array();
$proto15["m_sql"] = "";
$proto15["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto15["m_column"]=$obj;
$proto15["m_contained"] = array();
$proto15["m_strCase"] = "";
$proto15["m_havingmode"] = "0";
$proto15["m_inBrackets"] = "0";
$proto15["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto15);

$proto13["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto13);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

$queryData_tintuc = $obj;
$tdatatintuc[".sqlquery"] = $queryData_tintuc;

$tableEvents["tintuc"] = new eventsBase;

?>
